import request from "@/utils/request"

//接口查询设备模型列表
export function queryPageApplicationScenarios(data) {
  return request({
    url: "/bApplicationScenarios/queryPageApplicationScenarios",
    method: "get",
    params: data
    // pageSize pageIndex
  })
}

export function queryPageLApplicationToWorkModel(data) {
  return request({
    url: "/bApplicationScenarios/queryPageLApplicationToWorkModel",
    method: "get",
    params: data
    // pageSize pageIndex
  })
}

export function queryMyWorkModelPage(data) {
  return request({
    url: "/bWorkFlowModel/queryMyWorkModelPage",
    method: "get",
    params: data
    // pageSize pageIndex
  })
}

export function deleteBApplicationToWorkModel(data) {
  return request({
    url: "/bApplicationScenarios/deleteBApplicationToWorkModel",
    method: "post",
    data: data
    // pageSize pageIndex
  })
}

export function insertBApplicationToWorkModel(data) {
  return request({
    url: "/bApplicationScenarios/insertBApplicationToWorkModel",
    method: "post",
    data: data
    // pageSize pageIndex
  })
}

// 添加应用场景
export function insertApplicationScenarios(data) {
  return request({
    url: "/bApplicationScenarios/insertApplicationScenarios",
    method: "POST",
    data: data
  })
}

export function queryEnumConfigList(data) {
  return request({
    url: "/bEnumConfig/queryEnumConfigList",
    method: "get",
    params: data
  })
}

export function deleteApplicationScenarios(data) {
  return request({
    url: "/bApplicationScenarios/deleteApplicationScenarios",
    method: "POST",
    data: data
  })
}
